package com.store.model;

import com.alibaba.fastjson.JSON;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;

@Data
public class ExpresspositionModel extends PageModel {

    public ExpresspositionModel() {
    }

    public ExpresspositionModel(ExpresspositionModel model) {
        this.setOrderno(model.getOrderno());
        this.setRiderlng(model.getRiderlng());
        this.setRiderlat(model.getRiderlat());
        this.setRiderphone(model.getRiderphone());
        this.setRidername(model.getRidername());
        this.setRecordid(model.getRecordid());
        this.setUploadtime(model.getUploadtime());
    }


    public Map<String, String> excelHead() {
        Map<String, String> excelHead = new HashMap<>();
        excelHead.put("recordid", "");
        excelHead.put("orderno", "");
        excelHead.put("sforderid", "");
        excelHead.put("ridername", "");
        excelHead.put("riderphone", "");
        excelHead.put("riderlng", "配送员经度");
        excelHead.put("riderlat", "纬度");
        excelHead.put("uploadtime", "坐标上传时间");
        excelHead.put("createtime", "");
        return excelHead;
    }

    @ApiModelProperty(value = "", required = true)
    private String recordid;
    @ApiModelProperty(value = "", required = true)
    private String orderno;
    @ApiModelProperty(value = "", required = true)
    private String sforderid;
    @ApiModelProperty(value = "", required = true)
    private String ridername;
    @ApiModelProperty(value = "", required = true)
    private String riderphone;
    @ApiModelProperty(value = "配送员经度", required = true)
    private String riderlng;
    @ApiModelProperty(value = "纬度", required = true)
    private String riderlat;
    @ApiModelProperty(value = "坐标上传时间", required = true)
    private String uploadtime;
    @ApiModelProperty(value = "", required = true)
    private String createtime;

    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }
}